<script setup lang="ts">
import { Picture } from '@element-plus/icons-vue'
import { useRouter } from 'vue-router';
const router = useRouter()
</script>

<template>
    <div class="not-found">
        <el-image src="https://img.zcool.cn/community/01e0cf5b7e0f67a8012190f2dd7e24.png@2o.png" lazy>
            <template #error>
                <div class="error_slot">
                    <el-icon>
                        <Picture></Picture>
                    </el-icon>
                </div>
            </template>
        </el-image>
        <el-button type="primary" class="backBtn" @click="router.replace('/dashboard/analytics')">Back</el-button>
    </div>
</template>



<style lang="scss" scoped>
.not-found {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: -1;

    .error_slot {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
        font-size: 210px;
        background-color: grey;
    }

    .backBtn {
        position: fixed;
        top: 60%;
        left: 58.3%;
        z-index: 99;
    }
}
</style>
